home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
langs
/
nasm20
/
nasm20s.zoo
/
foo.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-01-22
|
383 b
|
25 lines
#ifdef TOS
#include <stdlib.h>
#else
#include <alloc.h>
#endif
#include <string.h>
#include <stdio.h>
main()
{
char *x = "resident.o65";
int i;
static char _y[32];
char *y = _y;
i = strlen( x) + 1;
*y++ = 0xFF;
y[ i] = 0xFF;
strcpy( y, x);
if( y[ -1] == y[ i])
printf("Success\n");
else
printf( "Failure\n");
}